<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
	</head>
	<body>
		<script type="text/javascript">
			var d1=new Date()
			d1.getFullYear(2024)
			d2.setMonth(3)
			d2.setDate(30)
			var d2=new Date()
			d2.setFullYear(2003)
			d2.setMonth(8)
			d2.setDate(17)
			
			var span=d1.getTime()-d2.getTime()
			var spanDay=span/1000/60/60/30
			alert("现在距离元旦"+spanDay+"天")
		</script>
	</body>
</html>
